package com.hxht.cmp.service;

import com.google.gson.JsonArray;
import com.hxht.cmp.entity.Device;
import com.hxht.cmp.pojo.DevicePojo;

import java.util.List;
import java.util.Map;

public interface DeviceService {
    JsonArray getDevStatus(String courtUid);

    List<DevicePojo> selectDeviceByCourtUid(String courtUid, String courtroomName);

    Map<String, Object> countDeviceByCourtUid(String courtUid, String courtroomName, int page, int pageSize);

    int addDevice(Device device);

    int updateDevice(Device device);

    Device selectDeviceByPrimaryKey(long id);

    int deleteDeviceByPrimaryKey(long id);
}
